package com.example.zhuyu.login.module.di.module;

import com.example.zhuyu.basemvp.di.scope.ActivityScope;
import com.example.zhuyu.login.module.mvp.contract.LoginContract;
import com.example.zhuyu.login.module.mvp.model.LoginModel;

import dagger.Module;
import dagger.Provides;

/**
 * @author zhuyu
 * @date 2019/2/21
 * @desc
 */


@Module
public class LoginModule {

    private LoginContract.View mView;

    public LoginModule(LoginContract.View view) {
        mView = view;
    }


    /**
     * 提供view
     * @return
     */
    @ActivityScope
    @Provides
    LoginContract.View provideLoginView(){
        return mView;
    }

    /**
     * 提供model
     * @param model
     * @return
     */
    @ActivityScope
    @Provides
    LoginContract.Model provideLoginModel(LoginModel model){

        return model;

    }

}
